﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Sprint1.Logic;
namespace Sprint1.Controllers
{
    public class HomeController : Controller
    {

        public ActionResult Index()
        {
            bool user = (System.Web.HttpContext.Current.User != null) && System.Web.HttpContext.Current.User.Identity.IsAuthenticated;
            if (user)
            {
                return RedirectToAction("Index", "Student");
            }
            else
            {
                return View();
            }
        }
	}
}